package com.lagou.edu.service.impl;

import com.lagou.edu.pojo.AuthCode;
import com.lagou.edu.service.EmailFeignClient;
import org.springframework.ui.ModelMap;


public class EmailFeignFallback implements EmailFeignClient {

    /**
     * 调用失败默认返回的
     *
     * @param authCode
     * @return
     */
    @Override
    public ModelMap sendEmail(AuthCode authCode) {
        ModelMap modelMap = new ModelMap();
        modelMap.addAttribute("code", 500);
        modelMap.addAttribute("message", "调用失败");
        return modelMap;
    }

}
